{% extends "questions/base.html" %}
{# L10n: {t} is the title of the question. #}
{% set title = _('Delete Answer | {t} | Firefox Support Forum')|f(t=answer.question.title) %}
{% set crumbs = [(url('questions.home'), _('Support Forum')),
                 (url('questions.details', answer.question.id), answer.question.title),
                 (None, _('Delete answer'))] %}

{% block content %}
  <div class="grid_12">
    <article class="main">
      <div class="to-delete highlight-box">
        <h1>{{ _('Are you sure you want to delete this answer?') }}</h1>
        <label>{{ _('Creator') }}</label>
        <div>{{ answer.creator }}</div>
        <label>{{ _('Date') }}</label>
        <div>{{ datetimeformat(answer.created, format='longdatetime') }}</div>
        <label>{{ _('Content') }}</label>
        <div>{{ answer.content_parsed }}</div>

        <form action="{{ url('questions.delete_answer', answer.question.id, answer.id) }}" method="post">
          {% csrf_token %}
          <p>
            {{ _('You are about to permanently delete this answer. <strong>This cannot be undone!</strong> Are you sure you want to continue?')|safe }}
          </p>
          <input type="submit" class="btn" value="{{ _('Delete') }}" />
          <a href="{{ url('questions.details', answer.question.id) }}">{{ _('Cancel') }}</a>
        </form>
      </div>
    </article>
  </div>
{% endblock %}

{% block side %}
{% endblock %}
